body {
  margin: 0 auto;
  padding-top: 50px;
  max-width: 640px;
  background-color: #f4f4f4;
}

/* 一些通用元素  */
.w100 {
  width: 100%;
}

/* 底部  */
.bottom-nav {
  padding: .3em;
  background-color: #0099cc;
  color: #fff;
}

.bottom-nav:empty {
  visibility: hidden;
}

.bottom-nav a {
  color: #fff;
}

.bottom-copyright {
}

/* 空的购物车和订单 */
.empty .message {
  margin-bottom: 30px;
  text-align: center;
}

/* 首页商品块   */
.product-block {
}

.product-block h4 {
  position: relative;
  margin-bottom: 10px;
  padding: 0 10px;
  height: 40px;
  border-left: #0077CC solid 5px;
  background-color: #fff;
  line-height: 40px;
}

.product-block .arrows9 {
  position: absolute;
  top: 12px;
  right: 10px;
}

.product-block ul {
}

.product-block li {
  float: left;
  width: 48%;
  border: 1px solid #eaeaea;
  background-color: #fff;
}

.product-block li:nth-of-type(odd) {
  margin-right: 2%;
}

.product-block li:nth-of-type(even) {
  margin-left: 2%;
}

.product-block .preview {
  overflow: hidden;
  height: 150px;
  border-bottom: 1px solid #ddd;
  text-align: center;
}

.product-block .preview img {
  width: 100%;
}

.product-block .title {
  overflow: hidden;
  padding: 0 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-block .price {
  padding: 0 10px;
  color: #f00;
}

.product-block .price span {
  margin-right: .2em;
  font-weight: bold;
  font-size: 1.6rem;
}

.product-block .price del {
  color: #999;
}

/* 搜索层，满屏显示  */
.product-search {
  background-color: #f4f4f4;
}

.product-search form {
  position: relative;
}

.product-search .arrows9 {
  position: absolute;
  top: 50%;
  left: .3em;
  width: 1.5em;
  height: 1.5em;
  -webkit-transform: translate(0,-50%) rotate(135deg);
      -ms-transform: translate(0,-50%) rotate(135deg);
          transform: translate(0,-50%) rotate(135deg);
}

.product-search .search-word {
  margin-right: 4em;
  margin-left: 2em;
  padding: .6em 1em;
  height: 3em;
  border: 1px solid #ccc;
  border-radius: 5px 0 0 5px;
  background-color: #fff;
}

.product-search .search-input {
  padding: 0;
  width: 100%;
  height: auto;
  border: none;
  box-shadow: none;
}

.product-search .search-input:focus {
  border-color: #ccc;
}

.product-search .submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 4em;
  height: 3em;
  border: 1px solid #ccc;
  border-left: none;
  border-radius: 0 5px 5px 0;
  background-color: #f4f4f4;
}

.product-search .icon-search {
  display: block;
  margin-left: 1em;
  width: 2em;
  height: 2em;
  background: url(../images/search.png) 0 0 no-repeat;
  background-size: 2em 2em;
}

/* 商城栏目  */
.product-block.category li {
  text-align: center;
  line-height: 3em;
}

/* 顶部菜单  */
.product-menu {
  position: fixed;
  top: 0;
  z-index: 1000;
  margin: 0 auto;
  width: 100%;
  height: 50px;
  max-width: 640px;
  background-color: #09c;
  line-height: 50px;
  -webkit-backface-visibility: hidden;
          backface-visibility: hidden;
}


.product-menu a {
  position: relative;
  float: left;
  width: 20%;
  text-align: center;
}

.product-menu a em {
  display: inline-block;
  width: 24px;
  height: 24px;
  background-image: url(../images/menu-icon.png);
  background-size: cover;
  background-repeat: no-repeat;
}

.product-menu a:nth-child(2) em {
  background-position: -24px 0;
}

.product-menu a:nth-child(3) em {
  background-position: -48px 0;
}

.product-menu a:nth-child(4) em {
  background-position: -72px 0;
}

.product-menu a:nth-child(5) em {
  background-position: -96px 0;
}

#cart-num {
  position: absolute;
  top: 8px;
  left: 50%;
  display: inline-block;
  margin-left: 20px;
  width: 15px;
  height: 15px;
  border: 2px solid #fff;
  border-radius: 50%;
  background-color: #b10;
  font-size: 1.2rem;
}

#cartCount {
  position: absolute;
  top: 3px;
  left: 55%;
  z-index: 9;
  padding: 2px 4px;
  height: 16px;
  min-width: 16px;
  border-radius: 50%;
  background-color: #eb3634;
  box-shadow: 0 0 0 2px #fff;
  color: #fff;
  font-size: 1rem;
  line-height: 13px;
}

/* 搜索  */
.search .search-input {
  position: absolute;
  right: 20%;
  display: none;
  margin-top: 8px;
  width: 0;
  transition: all .5s ease-in-out;
}

/* 商品具体信息  */
.product-item {
  padding: 10px;
  border-bottom: 1px solid #ccc;
}

.product-item .key {
  float: left;
  width: 4em;
  text-align: right;
  color: #999;
}

.product-summary .summary-item {
  padding: 2px 0;
}

.product-summary .p-price .value {
  color: #B10000;
  font-weight: bold;
  font-size: 1.8rem;
}

/* 购买选择  */
.product-buy-check .value {
  margin-left: 50px;
}

.product-buy-check .key {
  height: 34px;
  line-height: 34px;
}

.product-buy-check .check-item {
  display: inline-block;
  margin-right: 5px;
  margin-bottom: 5px;
  padding: 3px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
  -webkit-user-select: none;
  user-select: none;
}

.product-buy-check .check-item.checked {
  padding: 2px 9px;
  border-color: #B10000;
  border-width: 2px;
  background: url('') no-repeat 100% 100% #fafafa;
}

.product-buy-check input[type="radio"] {
  display: none;
}

/* 数量增减  */
.product-number {
  display: inline-block;
  overflow: hidden;
  height: 34px;
  border: 1px solid #ccc;
  background-color: #fff;
  line-height: 34px;
}

.buy-num-minus, .buy-num-plus, .buy-num {
  float: left;
  float: left;
  display: inline-block;
  width: 30px;
  height: 100%;
  text-align: center;
  font-weight: bold;
}

.buy-num-minus:active, .buy-num-plus:active {
  background-color: #eee;
}

.buy-num-minus {
  border-right: 1px solid #ccc;
}

.buy-num-plus {
  border-left: 1px solid #ccc;
}

.buy-num {
  width: 50px;
  border: none;
  box-shadow: none;
}

/* 购买按钮  */
.buy-btn {
  display: inline-block;
  width: 45%;
  height: 40px;
  border: none;
  color: #fff;
  text-align: center;
  line-height: 40px;
}

.cart {
  margin-right: 4%;
  background-color: #B57230;
}

.cart:active {
  background-color: #DA8430;
  color: #fff;
}

.buy {
  margin-left: 4%;
  background-color: #B10000;
}

.buy:active {
  background-color: #E01B1B;
  color: #fff;
}

/* 商品详情，评价  */
.product-detail header {
  display: -webkit-box;
  display: box;
  height: 40px;
  border: 1px solid #ccc;
  border-top: none;
  border-bottom: none;
  background-color: #e9e9e9;
  box-shadow: 0 1px 2px rgba(0,0,0,.2);
  text-align: center;
  line-height: 40px;
}

.product-detail header a {
  display: block;
  border-top: 1px solid #ccc;
  -webkit-box-flex: 1;
}

.product-detail header a.current {
  background-color: #fff;
  border-top-color: #b10000;
  border-top-width: 2px;
}

.product-detail .wrap {
  overflow: hidden;
  border: 1px solid #ccc;
  border-top: none;
  background-color: #fff;
  word-wrap: break-word;
}

.product-comment li {
  border-bottom: 1px solid #ccc;
  padding-bottom: .3em;
  margin-bottom: .7em;
}

.product-comment li .user {
	margin-top: .2em;
  font-size: .8em;
}

.product-comment li .user time {
  float: right;
  color: #555;
}

/* 购物车  */
.empty-cart .cart-logo {
  margin: 20px 0 10px;
  height: 80px;
  background: transparent url("") no-repeat center;
}

.cart-lists {
  position: relative;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #eaeaea;
  border-radius: 3px;
  background-color: #fff;
  -webkit-transition: opacity .5s ease-in-out;
  transition: opacity .5s ease-in-out;
}

.cart-lists .good-name {
  border-bottom: 1px solid #eaeaea;
}

.cart-lists .good-info {
  padding: 10px 0;
  border-bottom: 1px solid #ccc;
}

.good-info:last-child {
  border-bottom: none;
}

.good-info .good-pic {
  float: left;
  overflow: hidden;
  margin-right: 10px;
  width: 50px;
  height: 50px;
}

.good-info .info-item {
  overflow: hidden;
}

.good-del {
  position: absolute;
  bottom: 5px;
  left: 10px;
}

.good-info .key {
  line-height: 20px;
}

.total-price {
  position: fixed;
  bottom: 0;
  padding-left: 10px;
  width: 100%;
  height: 50px;
  max-width: 640px;
  border-top: 1px solid #ddd;
  background-color: #fff;
  line-height: 50px;
}

.total-price p {
  float: left;
}

.total-price em {
  color: #f00;
}

.total-price button {
  float: right;
  width: 90px;
  height: 50px;
  border-radius: 0;
}

/* 订单提交  */
.confirm-order {
  margin-top: 10px;
}

.order-item {
  position: relative;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

.order-item .ms-list {
  margin-right: 15px;
  line-height: 1.8em;
}

.order-item .info {
  border-bottom: 1px dashed #ccc;
}

.order-item .ms-list span {
  float: left;
  color: #666;
}

.order-item .ms-list p {
  margin-left: 70px;
}

.order-item .arrows9 {
  position: absolute;
  top: 50%;
  right: 10px;
  margin-top: -5px;
}

.order-item.delivery-type span {
  float: left;
  line-height: 34px;
}

.confirm-order .price {
  color: #b10;
  text-align: right;
  font-size: 2.5rem;
}

/* 收货地址的选择、修改、删除与新增  */
.address-item {
  border: 1px solid #ddd;
  border-top: 1px solid #09c;
  border-radius: 5px;
  background-color: #fff;
}

.address-item.active {
  border-color: #b10;
  background: url('') no-repeat 100% 100% #fafafa;
  background-size: 20px 20px;
}

.deliver-address .del {
  position: absolute;
  top: 50%;
  right: -10em;
  z-index: 1;
  -webkit-transform: translateY(-50%);
}

/* 会员中心  */
.my {
  position: relative;
  overflow: hidden;
  border: 1px solid #eaeaea;
  border-bottom: none;
  border-radius: 5px;
  background-color: #fff;
  box-shadow: 0 0.1em 0.05em rgba(0,0,0,.1);
}

.my-item {
  border-bottom: 1px solid #e5e5e5;
}

.my-item a.link {
  position: relative;
  display: block;
  padding: 1.2em;
}

.my-item a.link::after {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 10px;
  height: 10px;
  border: 1px solid #ccc;
  content: "";
  -webkit-transform: rotate(-45deg) translateY(-50%);
  transform: rotate(-45deg) translateY(-50%);
  border-top-color: transparent;
  border-left-color: transparent;
  -ms-transform: rotate(-45deg) translateY(-50%);
}

.my-item.single a.link:after {
  content: none;
}

.my-item a.link:active {
  background-color: #f4f4f4;
  box-shadow: inset 0 2px 3px rgba(0,0,0,.1);
}

/* 订单查询出的列表  */
.order-lists .order-image {
  float: left;
  overflow: hidden;
  width: 50px;
}

.order-lists .order-image img {
  max-width: 50px;
}

.order-lists .order-info {
 /* margin-left:70px; */
}

.order-lists .order-info h3 {
  font-weight: normal;
  font-size: 1.4rem;
}

.order-lists .order-info p {
  color: #666;
}

/* 空的订单 */
.empty-order .order-logo {
  margin: 20px auto 10px;
  width: 50px;
  height: 56px;
  background: transparent url("") no-repeat center;
  background-size: 100%;
}

/* 每个订单的详细  */
.detail-item {
  position: relative;
  padding: 1.2em;
  border-bottom: 1px solid #eaeaea;
}

.detail-item b {
  color: #f60;
}

.detail-item.content p {
  line-height: 2em;
}

.detail-item.content .address-info {
	margin-left: 70px;
	display: block;
}

.detail-item .order-good-list {
	position: relative;
  padding-right: 60px;
  margin-bottom: 5px;
  border-bottom: 1px solid #eaeaea;
}

.detail-item .order-good-list .good-image {
  float: left;
  overflow: hidden;
  width: 50px;
  height: 60px;
  text-align: center;
  line-height: 60px;
}

.detail-item .order-good-list .good-info {
  margin-left: 60px;
}

.detail-item .order-good-list .evaluate {
  position: absolute;
  right: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
      -ms-transform: translateY(-50%);
          transform: translateY(-50%);
}

.order-detail-pay {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 60px;
  max-width: 640px;
  border-top: 1px solid #eee;
  background-color: #f9f9f9;
  line-height: 60px;
}

.my-order-detail .order-cancel-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 2.5em;
  height: 2.5em;
  background: url(../images/rubbish.png) 0 0 no-repeat;
  background-size: 2.5em 5em;
}

.my-order-detail .order-cancel-btn:active {
  background-position: 0 -2.5em;
}

.order-detail-pay .btn {
  position: absolute;
  top: 10px;
  right: 10px;
}

/* 评价层  */
.evaluate-lay {
  position: absolute;
  top: 1.5em;
  left: 50%;
  z-index: 1001;
  margin-left: -40%;
  padding: .5em;
  width: 80%;
  border-radius: .3em;
  background-color: #e8e8e8;
}

.evaluate-lay .title {
	padding-bottom: .2em;
  border-bottom: 1px solid #b5b5b5;
}

.evaluate-lay textarea {
  margin: .4em 0;
  width: 100%;
}

/* 付款界面  */
.to-pay p {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 2em;
}

.to-pay h3 {
  margin: 0 auto;
  margin-bottom: 1em;
  padding: .5em 0;
  width: 300px;
  border-bottom: 1px solid #ececec;
  background: url("../images/bg_4.png") 0 50% no-repeat;
  background-size: 1em 0.9em;
  color: #88b24b;
  text-align: center;
}
